Skip to content

feat: optimize log viewer performance and add CLI TUI routing#749

Merged
FL4TLiN3 merged 2 commits intomainfrom
feat/log-tui-enhancements
Mar 11, 2026
Merged

feat: optimize log viewer performance and add CLI TUI routing#749
FL4TLiN3 merged 2 commits intomainfrom
feat/log-tui-enhancements

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Add typeFilter parameter to event file reading in @perstack/filesystem-storage, filtering by filename before reading file contents (~8.6x I/O reduction for tree building with 28k event files)
  • Add getTreeEventsForJob to LogDataFetcher for selective event loading (only tree-relevant event types)
  • Route perstack log to interactive TUI by default, with --text flag for legacy text output
  • Track per-node token breakdown (input/output/cached) in delegation tree nodes
  • Improve flattenTreeAll with visited set and orphan node handling
  • Refactor interface-panel to use shared BottomPanel component

Test plan

  • All unit tests pass (14 build-run-tree tests including resolveToolResults)
  • Type check passes across all 24 packages
  • Lint passes with no new warnings
  • Changeset validated
  • Manual test: perstack log opens TUI
  • Manual test: perstack log --text falls back to text output

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits March 12, 2026 07:19
- Add typeFilter to event file reading, filtering by filename before
  reading file contents (8.6x I/O reduction for tree building)
- Add getTreeEventsForJob to LogDataFetcher for selective event loading
- Route `perstack log` to interactive TUI by default, with --text flag
  for legacy text output
- Track per-node token breakdown (input/output/cached) in delegation tree
- Improve flattenTreeAll with visited set and orphan node handling
- Refactor interface-panel to use shared BottomPanel component

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit b594132 into main Mar 11, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the feat/log-tui-enhancements branch March 11, 2026 22:21
This was referenced Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant